/* 布局容器样式 */
/* 设置整个页面为flex布局，垂直排列，并确保占满整个视口高度 */
.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* 导航栏样式 - 与页面内容融为一体 */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
}

/* Logo区域样式 */
/* 优化Logo布局，单标题居中显示 */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  height: 80px; /* 增加导航栏高度 */
}

/* Logo图片样式 */
/* 优化Logo图片尺寸，在不同屏幕下保持比例 */
.logo img {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0; /* 防止图片被压缩 */
}

/* Logo主标题 */
.logo h1 {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logo文字容器 */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* 允许收缩 */
}

/* Logo主标题 */
.logo h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 导航链接容器样式 */
/* 优化导航链接区域布局，确保在有限空间内合理排列 */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* 导航链接样式 */
/* 现代化的导航链接样式，包含悬停效果和活跃状态 */
.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 导航链接悬停效果 */
.nav-links a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 导航链接活跃状态 */
.nav-links a.active {
  color: white;
  background-color: rgba(59, 130, 246, 0.2);
  font-weight: 600;
}

/* 导航链接下划线动画效果 */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 80%;
}

/* 主要内容区域样式 - 与整体页面融合 */
.main-content {
  flex: 1;
  padding: 0;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* 页脚样式 - 与页面内容融为一体 */
.footer {
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

/* 社交媒体链接容器样式 */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* 社交媒体链接样式 */
.social-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 社交媒体链接悬停样式 */
.social-links a:hover {
  color: white;
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* 社交媒体文本样式 */
/* 为span元素设置与链接相同的样式 */
.social-links span {
  color: white;
  cursor: default;
}

/* 加载容器样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* 页脚内容容器 */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info p {
  margin: 0.25rem 0;
  color: #cbd5e1;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 超小屏幕团队名称优化 */
@media (max-width: 390px) {
  .logo h1 {
    font-size: 0.9rem;
    line-height: 1.1;
  }
}

@media (max-width: 375px) {
  .logo h1 {
    font-size: 0.85rem;
    line-height: 1.1;
    word-break: break-word;
  }
}

@media (max-width: 350px) {
  .logo h1 {
    font-size: 0.8rem;
    line-height: 1.1;
  }
}

/* 响应式设计优化 - 无副标题版本 */
/* 中等屏幕优化 */
@media (max-width: 1200px) {
  .navbar {
    grid-template-columns: 1fr auto;
    padding: 0.75rem 1.5rem;
  }
  
  .logo h1 {
    font-size: 1.25rem;
  }
  
  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* 手机端导航栏优化布局 - 统一移动端宽度 */
  .navbar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* 手机端Logo区域优化 */
  .logo {
    justify-content: center;
    gap: 0.5rem;
    height: auto;
    flex-direction: column;
    text-align: center;
    padding: 0.5rem 0;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .logo img {
    height: 40px;
    width: 40px;
    margin-bottom: 0.5rem;
  }

  .logo-text {
    width: 100%;
    max-width: 100%;
  }

  .logo h1 {
    font-size: 1.1rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
  }

  /* 导航链接居中排列 */
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .main-content {
    padding: 1rem;
  }

  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  /* 手机端Logo区域优化 */
  @media (max-width: 768px) {
    .logo {
      gap: 0.75rem;
      height: 70px; /* 移动端稍小一些 */
    }
  
    .logo img {
      height: 55px;
      width: 55px;
      padding: 6px;
    }
  
    .logo h1 {
      font-size: 1.3rem;
    }
  }
  
  /* 超小屏幕团队名称优化 */
  @media (max-width: 480px) {
    .logo {
      gap: 0.5rem;
      height: 65px;
    }
  
    .logo img {
      height: 50px;
      width: 50px;
      padding: 5px;
    }
  
    .logo h1 {
      font-size: 1.1rem;
    }
  }

  .logo {
    gap: 0.25rem;
    padding: 0.25rem 0;
    max-width: 100%;
    padding: 0 1rem;
  }

  .logo img {
    height: 35px;
    width: 35px;
    margin-bottom: 0.25rem;
  }

  .logo h1 {
    font-size: 1rem;
    line-height: 1.2;
    padding: 0 0.25rem;
  }

  .nav-links {
    gap: 0.125rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 0 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    margin: 0.125rem;
  }
}
